# -*-  coding:utf-8 -*- 
# Author : lihongliang


a  = [1,2,3,4,5,6]

print(a)

a = map(lambda  x : x+1, a )
for i in a:
    print(i)

while True:   # 取到无值时会报错
    next(a)


# b = [i+1 for i  in range(10)]
# print(b)
# #三元运算
# c = [i if i <5 else i*i   for i in range(10)]
# print(c)